import Vue from 'vue'
import Router from 'vue-router'
import Case from "../components/Case";
import ApiRecord from "../components/Apis/ApiRecord";
import Config from "../components/Apis/Config";
import SceneRecord from "../components/Apis/SceneRecord";
import SceneScript from "../components/Apis/SceneScript";
import ScriptOrder from "../components/Apis/ScriptOrder";
import ScriptUse from "../components/Apis/ScriptUse";
import Login from "../components/Login";
import Register from "../components/Register";
Vue.use(Router);

export const LoginRouter={
  path:'/login',
  name:'Login',
  meta:{
    title:'登录'
  },
  component:Login
};

export default new Router({
  //配置路由
  routes: [
    {path:'/case',component:Case},
    {path:'/config',component:Config},
    {path:'/scene_record',component:SceneRecord},
    {path:'/scene_script',component:SceneScript},
    {path:'/script_order',component:ScriptOrder},
    {path:'/script_use',component:ScriptUse},
    {path:'/api_record',component:ApiRecord},
    {path:'/login',component:Login},
    {path:'/register',component:Register},
  ]
})
